<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>侧边栏效果</title>
    <link rel="stylesheet" href="css/style.css" />
  </head>
  <body>
    <div id="mySidenav" class="sidenav">
      <a href="javascript:void(0)" class="closebtn" onclick="closeNav()"
        >&times;</a
      >
      <a href="#">首页</a>
      <a href="#">系统管理</a>
      <a href="#">角色管理</a>
      <a href="#">菜单管理</a>
      <a href="#">参数管理</a>
      <a href="#">文件上传</a>
      <a href="#">联系我们</a>
    </div>

    <div id="main">
      <h2>数据后台管理</h2>
      <span style="font-size: 30px; cursor: pointer" onclick="openNav()"
        >&#9776; 打开侧边栏</span
      >
      <div>
        <img src="img/data.png" alt="" />
      </div>
    </div>
  </body>
</html>
